package com.platform.car.service.impl;

import com.platform.car.dao.ParkingDao;
import com.platform.car.dao.ParkuseDao;
import com.platform.car.model.Parkuse;
import com.platform.car.service.ParkuseService;
import com.platform.common.base.impl.BaseServiceImpl;
import com.platform.common.base.service.BaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class ParkuseServiceImpl extends BaseServiceImpl<Parkuse> implements ParkuseService {

    @Autowired
    private ParkuseDao parkuseDao;

    @Override
    public List<Parkuse> selectByPlate(Parkuse parkuse) {
        return parkuseDao.selectByPlate(parkuse);
    }

    @Override
    public Parkuse selectOrder(Parkuse parkuse) {
        return parkuseDao.selectOrder(parkuse);
    }

    @Override
    public Long countNumber(Parkuse parkuse) {
        return parkuseDao.countNumber(parkuse);
    }

    @Override
    public Long countNum(Parkuse parkuse) {
        return parkuseDao.countNum(parkuse);
    }

    @Override
    public Parkuse selectByCpAndStatus(Parkuse parkuse) {
        return parkuseDao.selectByCpAndStatus(parkuse);
    }

    @Override
    public Parkuse parkuseDetail(String id) {
        return parkuseDao.parkuseDetail(id);
    }

    @Override
    public List<Parkuse> selectOrderList(Parkuse parkuse) {
        return parkuseDao.selectOrderList(parkuse);
    }

    @Override
    public List<Parkuse> selectByStatus(String status) {
        return parkuseDao.selectByStatus(status);
    }
}
